package team.yidong.fenda.service;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.springframework.stereotype.Service;
import team.yidong.fenda.entity.HospitalField;

/**
 * Created by xuanlong on 2017/10/16.
 */
@Service
public interface HospitalFieldService {
    public JSONObject findHospitalField(Integer hospitalId, String hospitalName, Integer offset, Integer limit);

    public void addHospitalField(String hospitalName, String fieldName);

    public void deleteHospitalField(Iterable<HospitalField> hospitalFieldIterable);

    public void saveHospitalField(HospitalField hospitalField);

    public void saveHospitalFieldAndQuestionClass(String jsonData, String oldFieldName);

    public String updateFieldIcon(Integer fieldId, String fileName);
}
